QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    LoginWindow.cpp \
    MainWindow.cpp \
    main.cpp \
    src/QtTcp/xdgTcpClient.cpp \
    src/controlClass/GaugeCloud.cpp \
    src/vlc/xdgvlc.cpp

HEADERS += \
    LoginWindow.h \
    MainWindow.h \
    globalTable.hpp \
    src/QtTcp/xdgTcpClient.h \
    src/controlClass/GaugeCloud.h \
    src/nlohmannjson.hpp \
    src/videoCodec/PacketBlob.hpp \
    src/videoCodec/QtVideoStreamParser.hpp \
    src/videoCodec/VideoDecoder.hpp \
    src/vlc/xdgvlc.h


FORMS += \
    LoginWindow.ui \
    MainWindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    res/res.qrc

# FFmpeg 配置
win32 {
    # FFmpeg 库路径
    LIBS += -L$$PWD/lib/FFmpeg_x86/

    # FFmpeg 库文件
    LIBS += -lavcodec \
            -lavutil \
            -lavformat \
            -lavfilter \
            -lswscale \
            -lswresample \
            -lpostproc

    # FFmpeg 头文件路径
    INCLUDEPATH += $$PWD/include/FFmpeg
    DEPENDPATH += $$PWD/include/FFmpeg
}

# VLC 配置
win32 {
    # VLC 库路径
    LIBS += -L$$PWD/lib/vlc-3.0.8

    # VLC 库文件
    LIBS += -llibvlc -llibvlccore

    # VLC 头文件路径
    INCLUDEPATH += $$PWD/include/vlc-3.0.8
    DEPENDPATH += $$PWD/include/vlc-3.0.8
}
